<template>
  <div>
    <h3>{{name}}的歌曲列表</h3>
  </div>
</template>

<script>
export default {
    name:"MusicDetail",
    mounted(){
        console.log(this.$router);
    },
    computed:{
        name(){
            const {id}=this.$router.params;
            switch(id){
                case"1":
                return"周杰伦";
                 case"2":
                return"林俊杰";
                 case"3":
                return"陈奕迅";
                default:
                return"xxxx";
            }
        }
    }
}
</script>

<style>

</style>